import pandas as pd

data = pd.read_csv('rating.csv')
#print(data.head())

for i in range(len(data)):
    userid = data['userid'][i]
    movieid = data['movieid'][i]
    print(userid, movieid)

    data = pd.read_csv('rating.csv')
    for i in range(len(data)):
        userid = data['userid'][i]
        movieid = data['movieid'][i]
        bubi = data['bu_add_bi_rate'][i]
        print(userid, movieid)